#pragma once
#include <Windows.h>
#include <tchar.h>
enum VER_TYPE
{
    VER_FILE,
    VER_PRODUCT
};
namespace CODEHELPER
{
    class CSystemHelper
    {
    public:
        CSystemHelper( void );
        virtual ~CSystemHelper( void );

        static BOOL IsWin7();

        static BOOL IsXP();

        static BOOL IsVista();

        static BOOL IsWin8();

        static BOOL IsWin2000();

        static BOOL IsWinNT();

        static BOOL SetProcessAppUserModelID( LPCWSTR lpwsProcessUserModelID );

        static BOOL GetVersion( LPCTSTR lpszFilePath, LPTSTR lpVerInfo, int iSizeBuf, VER_TYPE verType = VER_PRODUCT );

        static void GetModulePath( LPCTSTR lpszModuleFile, LPTSTR lpBuf, DWORD dwBufSize );

        static void GetModuleExtName( LPCTSTR lpszModuleFile, LPTSTR lpBuf, DWORD dwBufSize );
    };

}

